package com.dao.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.common.dao.impl.BaseDaoImpl;
import com.dao.ReportDao;
import com.entity.UserEntity;


/**
 * 描述：测试
 * @author：<a href="mailto:beier.zheng@yeepay.com">郑贝尔</a>
 * @since：Oct 15, 2012 5:30:41 PM
 * @version:1.0
 */
@Repository
public class ReportDaoImpl extends BaseDaoImpl<UserEntity,Long> implements ReportDao{
	public void batchAdd(){
			List<UserEntity> list = new ArrayList<UserEntity>();
			UserEntity user = new UserEntity();
			for(int i=0;i<10;i++){
				user.setAddress("address"+i);
				user.setAge(i);
				user.setName("name"+i*2);
				list.add(user);
			}
			this.getSqlSession().insert("UserEntity.addUsers",list);
	}
}
